from django.urls import path,re_path, include
from . import views
from rest_framework.routers import SimpleRouter
router = SimpleRouter()
router.register('', views.LoginView, 'login')   #url格式：/user1/login/
router.register('', views.SendSmsView, 'send')  #url格式：/user1/send/
# router.register('', views.RegisterView, 'register') #因为post请求就是create方法，url格式：/user1/，感觉不太好
router.register('register', views.RegisterView, 'register') #改为 url 格式：/user1/register/
urlpatterns = [
    path('', include(router.urls)),
]